/**
 * Project Name:nplus1
 * File Name:MultipartResolver.java
 * Package Name:com.gamma.nplus1.common.multipart
 * Date:2015年12月7日下午9:28:58
 * Copyright (c) 2015, nplus1 Co., Ltd. All Rights Reserved.
 *
*/

package com.gamma.nplus1.common.multipart;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * ClassName:MultipartResolver <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Date:     2015年12月7日 下午9:28:58 <br/>
 * @author   jeno
 * @version  
 * @since    JDK 1.6
 */
public class MultipartResolver extends CommonsMultipartResolver {

    @Override
    public boolean isMultipart(HttpServletRequest request) {
        String dir = request.getParameter("dir");
        if(dir!=null){  // kindeditor 上传图片的时候 不进行request 的转换
            return false;
        }
        return super.isMultipart(request);
    }
}
